﻿using ContactSMS.Client.Service;
using ContactSMS.Client.Views;

namespace ContactSMS.Client
{
    public partial class App : Application
    {
        public App()
        {
            InitializeComponent();

            if (AuthService.IsUserLoggedIn)
            {
                MainPage = new AppShell();
            }
            else
            {
                MainPage = new NavigationPage(new LoginPage());
            }
        }
    }
}
